package com.fbs.wowo.manage.web;

import com.fbs.wowo.base.BaseController;
import com.fbs.wowo.base.Response;
import com.fbs.wowo.manage.entity.AccountDetail;
import com.fbs.wowo.manage.service.AccountDetailService;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/bank")
public class BankController extends BaseController {

    @PostMapping("/binding")
    public Response bankBinding(@ModelAttribute AccountDetail record) {
        accountDetailService.bankBinding(record);
        return success();
    }

    @Resource
    private AccountDetailService accountDetailService;
}
